import { RequestConfig } from './type'
import Request from './request'
export function createRequest(config?: RequestConfig): Request {
    return new Request(config)
}

// 创建默认单例（可配置全局默认值）
const defaultConfig: RequestConfig = {
    maxConcurrent: 5
}
export const request = createRequest(defaultConfig)
export { RequestConfig, ResponseResult } from './type'
